home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 February / maximum-cd-2012-02.iso / DiscContents / TheWagerSetup1.2.exe / Assets / Scripts / [18].lua < prev    next >
Encoding:
Text File  |  2011-02-26  |  699 b   |  26 lines

  1. -- Script [18]
  2. Starting = 1;
  3. SeaEvent = 0;
  4.  
  5. ShowStoryText("While exploring the coast of the island, you happen upon a small cave behind a waterfall. In the glistening light you can see five extrusions from the rock each painted with a different strange symbol. They look like they can be pushed. What do you do?");
  6.  
  7. if InInventory("{7}") then
  8.  
  9.   AddChoice("Try to make sense of them using your Parchment with Strange Riddles.", "[19]");
  10.  
  11. end
  12.  
  13. if math.random(0, 100) <= 20 then
  14.  
  15.   AddChoice("Guess which symbol to press", "[20]");
  16.   
  17. else
  18.  
  19.   AddChoice("Guess which symbol to press", "[21]");
  20.  
  21. end
  22.  
  23. AddChoice("Leave. Just leave.", "[22]");
  24. SetStartingEvent(ScriptID, false);
  25.  
  26.